
function search() {
document.indexForm.submit();
}


//========================ύ֤========================
function submitForm(){		 

		var passwdtest = /^[a-zA-Z0-9_]{6,16}$/;

		var newpasswd = document.getElementById("newpasswd").value;
		 if(null == newpasswd || newpasswd == ""){
		  	alert("请输入新密码!");
		  	document.getElementById("newpasswd").focus();
		  	return false;
		  }else if(!passwdtest.test(newpasswd)||newpasswd.length>16){
		  	alert("密码请设为6-16位字母或数字!");
		  	document.getElementById("newpasswd").focus();
		  	return false;
		  }
		  
		var passwdconfirm = document.getElementById("passwdconfirm").value;
		  if(null == passwdconfirm || passwdconfirm == ""){
		  	alert("请输入确认密码！");
		  	document.getElementById("passwdconfirm").focus();
		  	return false;
		  }else if(passwdconfirm != newpasswd){
		  	alert("两次输入的密码不一致!");
		  	document.getElementById("passwdconfirm").focus();
		  	return false;
		  }
		  
	  	document.addForm.submit(); 
		
		   }